package so.sao.shop.supplier.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import so.sao.shop.supplier.pojo.Result;
import so.sao.shop.supplier.pojo.input.CheckCommSearchInput;
import so.sao.shop.supplier.service.CheckingAccountCommodityService;

/**
 * <p>Version: supplier V1.2.0 </p>
 * <p>Title: CheckingAccountCommodityController</p>
 * <p>Description: 财务商品对账</p>
 *
 * @author: chensha
 * @Date: Created in 2017/11/22 10:29
 */
@RestController
@RequestMapping("/checkingCommodity")
public class CheckingAccountCommodityController {

    @Autowired
    private CheckingAccountCommodityService checkingAccountCommodityService;

    @GetMapping(value = "/searchCommodities",name = "多条件查询商品列表")
    public Result searchCommodities(CheckCommSearchInput checkCommSearchInput){
        return checkingAccountCommodityService.searchCommodities(checkCommSearchInput);
    }

}
